<?
require_once("../config/dbconn.php");require_once("../config/powercls.php");

$sqlgs="select * from {$db_prefix}users where ifnull(tjuser,0)=0 and ifnull(tjuser,0)=0";
$rsgs=$db->get_one($sqlgs);
$gsid=$rsgs['id'];
$sql="select * from {$db_prefix}users where id='$id'";
$rs=$db->get_one($sql);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	
}
-->
</style>

<link href="images/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td width="935" height="29" valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">会员查看</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td colspan="3"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                <tr>
                  <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="30" colspan="3">
			  
			  <table width="100%" height="120" border="0" cellpadding="0" cellspacing="0">

                <tr>
                  <td align="center" bgcolor="#f2f2f2" class="left_txt">用户名</td>
                  <td height="30" bgcolor="#f2f2f2" class="left_txt"><? echo $rs['username']?></td>
                </tr>
                <tr>
                  <td align="center" class="left_txt">昵称</td>
                  <td height="30" class="left_txt">
                    <?=$rs['nickname']?>                 </td>
                </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">性别</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['sex']?></td>
			        </tr>
				    <tr>
				   <td align="center" bgcolor="#f2f2f2" class="left_txt">登陆密码</td>
				   <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=authcode($rs['pwd'],"DECODE")?></td>
				  				  </tr>
				  				  <tr>
				   <td align="center" bgcolor="#f2f2f2" class="left_txt">二级密码</td>
				   <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=authcode($rs['pwd1'],"DECODE")?></td>
				  </tr>
                  <tr>
                      <td align="center" class="left_txt">资产钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['price']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">释放钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['sfprice']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">智能钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['znprice']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">算力钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['slprice']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">交易钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['jyprice']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">冻结钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['djprice']?></td>
                  </tr>
                  <tr style="display:">
                      <td align="center" class="left_txt">购物钱包TXL余额</td>
                      <td height="30" class="left_txt"><? echo $rs['gwprice']?></td>
                  </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">当前会员级别</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$hyrankary[$rs['rank']]?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">推荐用户</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?
					 //获取推荐会员
					 echo $rs['tjuser'];
					 ?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">管理用户</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?
					 echo $rs['gluser'];
					 ?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">位置</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$sysposary[$rs['pos']]?></td>
			        </tr>

				    <tr>
				      <td align="center" bgcolor="#f2f2f2" class="left_txt">身份证</td>
				      <td height="30" bgcolor="#f2f2f2" class="left_txt"><? echo $rs['idcard']?></td>
			        </tr>
				    <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">QQ</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['qq']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">EMAIL</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['email']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">手机</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['mobile']?></td>
			        </tr>

				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">所在地区</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><? echo getprovince($rs['province'])."-".getcity($rs['city'])."-".getarea($rs['area'])?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">开户银行</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['bank']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">银行地址</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['bankaddress']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">银行卡号</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['bankno']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">卡号开户名</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=$rs['bankname']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">注册时间</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt"><?=date("Y-m-d H:i:s",$rs['regtime'])?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#f2f2f2" class="left_txt">&nbsp;</td>
				     <td height="30" bgcolor="#f2f2f2" class="left_txt">&nbsp;</td>
			        </tr>
				   <tr></tr>
              </table></td>
            </tr>
            
            <tr></tr>
            <tr>
              <td width="50%" height="30" align="right"><input type="button" value="返回列表" name="B1" onClick="history.back();" /></td>
              <td width="6%" height="30" align="right">&nbsp;</td>
              <td width="44%" height="30">&nbsp;</td>
            </tr>
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
          </table>
		 
		  </td>
      </tr>
    </table></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>
</html>
